"""v = []#带参数的装饰器，输入一个参数，被装饰的函数就要执行多少次，然后追加到一个列表
def x(count):
    def kmj(func):
        def inner(*args, **kwargs):
            for i in range(count):
                data = func(*args,**kwargs)
                v.append(data)
            print(v)
            a = 'woaini youda'
            return a
        return inner

    return kmj


@x(9)
def index():
    return 8

v1 = index()
print(v1)
"""

"""
# 带参数的装饰器，输入一个参数，被装饰的函数就要执行多少次，然后追加到一个列表
def x(count):
    def kmj(func):
        def inner(*args, **kwargs):
            value = 0
            for i in range(count):
                data = func(*args, **kwargs)
                if data > value:
                    value = data
            return value

        return inner

    return kmj


@x(9)
def index():
    return 8


v1 = index()
print(v1)
"""

# a = [123, 12, 24, 5]
# print(sys.getrefcount(a))#引用计数器
#sys.getrecursionlimit()#默认递归最大数量

# sys.stdout.write('hellow')输出他就是print内部
"""
for i in range(1,101):
    msg = '%s%%\r'%i
    print(msg,end='')
    time.sleep(0.05)
"""
